home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / makefile.unx < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.1 KB  |  91 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.unx' for the exact path names to be used for libraries and
  8. #    binaries. Set the proper C compiler and graphics library flags in
  9. #    makeflag.unx as well.
  10. # 2. The libgif.a is not provided here. See the documentation on how to get
  11. #    it. Without it poly3d-r cannot be build.
  12. #    The make files are set as if libgif.a IS NOT PROVIDED.
  13. #
  14. #                Gershon Elber, Nov. 1991
  15. #
  16.  
  17. include makeflag.unx
  18.  
  19. #
  20. # All subdirectories to recurse into.
  21. #
  22. ALL_DIRS = misc_lib cagd_lib prsr_lib geom_lib \
  23.     grapdrvs irit poly3d-h illustrt iritfltr docs # poly3d-r
  24.  
  25. #
  26. # Uncommend the following variable to only see the actions taken.
  27. #
  28. # VIEW_ONLY = -n
  29.  
  30. SHELL = /bin/sh
  31.  
  32. all:     binaries doc init
  33.  
  34. #
  35. # Print info regarding initialization.
  36. #
  37. init:
  38.     -for f in "" \
  39.           "Before executing the test suite and/or any usage of this" \
  40.           "package you will have to issue the following commands:" \
  41.           "" \
  42.           "set path = (\$$path $(BIN_DIR))" \
  43.           "setenv IRIT_PATH $(BIN_DIR)/" \
  44.           "setenv IRIT_DISPLAY \"x11drvs -s-\"" \
  45.           "" \
  46.           "and optionally the following commands:" \
  47.           "" \
  48.           "setenv IRIT_BIN_IPC 1" \
  49.           "setenv IRIT_SERVER_HOST `hostname`" \
  50.           "setenv IRIT_SERVER_PORT 5432" \
  51.           "" \
  52.           "or similar."; do \
  53.         (echo $$f) \
  54.     done
  55.  
  56. binaries:
  57.     -for f in $(ALL_DIRS); do \
  58.         (cd $$f \
  59.          && echo ----------- `pwd` ------------- \
  60.          && make $(VIEW_ONLY) -f makefile.unx install); \
  61.     done
  62.     -strip $(BIN_DIR)/*
  63.  
  64. #
  65. # Make hardcopy documentation.
  66. #
  67. doc:
  68.     (cd docs && \
  69.      make $(VIEW_ONLY) -f makefile.unx irit.tex irit.doc)
  70.  
  71. clean:
  72.     -rm .~* .\#*            # Emacs backup files.
  73.     -for f in $(ALL_DIRS); do \
  74.         (rm $$f/*.a $$f/*.o $$f/*mon.out $$f/.~* $$f/.\#* $$f/*mon.out); \
  75.     done
  76.     -rm poly3d-r/*.gif
  77.     -rm poly3d-h/*.hdn
  78.     -rm irit/*.dat
  79.     -rm lib/*.a
  80.     -rm docs/irithlp docs/irithlp.o
  81.  
  82. #
  83. # Test some of the above programs. Make sure $(BIN_DIR) is in your path
  84. # and that IRIT_LCLDISP is set ('setenv IRIT_LCLDISP x11drvs').
  85. #
  86. test:
  87.     -(cd irit && irit demo)
  88.     -for f in poly3d-h illustrt iritfltr; do \
  89.         (cd $$f && csh -f test-unx); \
  90.     done
  91.